<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="models" value="${sessionScope.LOGIN_USERS_MODELS}"></c:set>
<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="sidebar-collapse">
		<ul class="nav" id="side-menu">
			<li class="nav-header">
				<div class="dropdown profile-element">
					<span> <img alt="image" class="img-circle"
						src="${ctx}/res/img/profile_small.jpg" />
					</span>
					
					<a data-toggle="dropdown" class="dropdown-toggle"href="${ctx}"> 
						<span class="clear"> 
						<span class="block text-muted text-xs m-t-xs"> <strong class="font-bold">${sessionScope.LOGIN_USERS.username}</strong>
						<b class="caret"></b></span> 
					</a>
					<ul class="dropdown-menu animated fadeInRight m-t-xs">
						<li><a href="${ctx}/admin/security/users/changeImg/${ sessionScope.LOGIN_USERS.id}">修改头像</a></li>
						<li><a href="${ctx}/admin/security/users/console/${ sessionScope.LOGIN_USERS.id}">个人资料</a></li>
						<li class="divider"></li>
						<li><a href="${ctx}/admin/security/users/logout">安全退出</a></li>
					</ul>
				</div>
				<span>您的访问IP是:${ip}</a> 
				<div class="logo-element">Ash</div>
			</li>
			<c:forEach items="${models}" var="model">
			<li>
				<a href="#">
				<i class="${model.icon}"></i> 
				<span class="nav-label">${model.name }</span> 
				<span class="fa arrow"></span>
				</a>
				<ul class="nav nav-second-level">
					<c:forEach items="${model.children}" var="m">
						<li><a  class="J_menuItem" href="${ctx}/admin/${model.enname}/${m.enname}/list">
						<i class="${m.icon}"></i>	${m.name }</a></li>
					</c:forEach>
				</ul>
			</li>
			</c:forEach>
		</ul>
	</div>
</nav>